<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>

<div id="app">
    {{ message }}
</div>

<div id="app-2">
    <span v-bind:title="message">
        鼠标悬停几秒钟查看此处动态绑定的提示信息！
    </span>
</div>

<div id="app-3">
    <p v-if="seen">能看到我了！！！！！</p>
</div>

<div id="app-4">
    <ol>
        <li v-for="todo in todos">
            {{ todo.text }}
        </li>
    </ol>
</div>

<div id="app-5">
    <p>{{ message }}</p>
    <button v-on:click="reverseMsg">逆转消息</button>
</div>


<h2>组件化与应用构建</h2>
<div id="app-6">
    <ol>
        <!-- 现在我们为每个todo-item提供待办项对象    -->
        <todo-item v-for="item in groceryList" v-bind:todo="item"></todo-item>
    </ol>
</div>



<script src="./lib/vue.js"></script>
<script src="./base-intro.js"></script>
<script src="./component/Todo-item.vue.js"></script>

</body>
</html>